package io.afu.common.dto.req;

import javax.validation.constraints.NotEmpty;

public class Login {

    /**
     * 用户名 或者手机号码 或者email 三者选其一
     */
    private String username;

    /**
     * email不能为空
     */
    private String email;

    /**
     * 手机号码不能为空
     */
    private String mobile;

    /**
     * 密码
     */
    @NotEmpty(message = "密码不能为空")
    private String password;

    /**
     * 来源
     */
    private String referer;

    /**
     * 登录来源
     */
    private String loginType;

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getReferer() {
        return referer;
    }

    public void setReferer(String referer) {
        this.referer = referer;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
